package com.yuyou.fn.platform.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 数据权限表
 *
 */
@TableName(value = "sys_data_permission")
public class SysDataPermission implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<SysDataPermission> createExample(){
		return new Example<SysDataPermission>(SysDataPermission.class);
	}

	/**  */
	@TableId(value = "data_permission_id")
	private Long dataPermissionId;

	/**  */
	@TableField(value = "user_id")
	private Long userId;

	/** 0:区域 1:业务 2:校区  */
	@TableField(value = "resource_type")
	private Integer resourceType;

	/**  */
	@TableField(value = "resource_id")
	private Long resourceId;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	public Long getDataPermissionId() {
		return this.dataPermissionId;
	}

	public void setDataPermissionId(Long dataPermissionId) {
		this.dataPermissionId = dataPermissionId;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getResourceType() {
		return this.resourceType;
	}

	public void setResourceType(Integer resourceType) {
		this.resourceType = resourceType;
	}

	public Long getResourceId() {
		return this.resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
